# import redis
#
# rd = redis.Redis(host='master')
# mid = '100000'
# key = 'weiboIDs'
# if not rd.sismember(key, mid):
#     print(mid)
#     rd.sadd(key, mid)
#
# rd.close()
#
# redisConnPool = redis.ConnectionPool(host='master', port=6379, max_connections=10)
#
# redis.Redis(connection_pool=redisConnPool)

from fake_headers import Headers

header = Headers(
    browser='chrome',
    os='win',
    headers=True
)

print(header.generate())
print(header.generate())
print(header.generate())